package com.aaa.hospital.ManagementEnd.service.Impl;

import com.aaa.hospital.ManagementEnd.mapper.ExamineMapper;
import com.aaa.hospital.ManagementEnd.pojo.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ExamineSerImpl implements ExamineMapper {
    @Autowired
    private ExamineMapper examineMapper;

    @Override
    public List<Appointment> selectAll() {
        return examineMapper.selectAll();
    }


    @Override
    public List<User> queryAll(int appid) {

        return examineMapper.queryAll(appid);
    }

    @Override
    public int insert(Examine examine) {
        return examineMapper.insert(examine);
    }

    @Override
    public int update(int visid) {
        return examineMapper.update(visid);
    }

    @Override
    public User queryAll1(int appid) {
        return examineMapper.queryAll1(appid);
    }

    @Override
    public VisitingCard queryAll2(int appid) {
        return examineMapper.queryAll2(appid);
    }

    @Override
    public List<RegistrationDB> selectAll1(int visid) {
        return examineMapper.selectAll1(visid);
    }

    @Override
    public List<RegistrationDB> selectAll2(String uname) {
        return examineMapper.selectAll2(uname);
    }
}
